package com.nine.design.pay.v3.impl;

import com.nine.design.pay.v3.AbstractHandlerStrategy;
import com.nine.design.pay.v3.HandlerStrategyFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class WxHandlerStrategy extends AbstractHandlerStrategy {

    @Override
    public void before() {
        log.info("before：检查账户是否异常。。。。。。。。");
    }

    @Override
    public void doPay() {
        log.info("【实际操作】微信支付...................");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        HandlerStrategyFactory.register("wx", this);
    }
}
